#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

class MazeController;
class MyCustomScene;
class QLineEdit;

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    void windowsPositionRead();
    void windowsPositionWrite();
    void checkSize(QLineEdit* lineEdit);

signals:
    void signalSettingsChanged(int width, int height);

private slots:
    void on_pushButton_clicked();

    void on_lineEdit_1_editingFinished();

    void on_lineEdit_2_editingFinished();

private:
    Ui::MainWindow  *ui;
    MazeController  *maze;
    MyCustomScene   *scene;
};
#endif // MAINWINDOW_H
